// backend/src/config/default.js
module.exports = {
    server: {
        http: {
            port: process.env.HTTP_PORT || 3000,
            host: '0.0.0.0'
        },
        ws: {
            port: process.env.WS_PORT || 8080,
            host: '0.0.0.0'
        }
    },
    mongodb: {
        url: process.env.MONGODB_URL || 'mongodb://robot-mongo:27017/robot_sim',
        options: {
            useNewUrlParser: true,
            useUnifiedTopology: true
        }
    },
    redis: {
        host: process.env.REDIS_HOST || 'robot-redis',
        port: process.env.REDIS_PORT || 6379
    },
    jwt: {
        secret: process.env.JWT_SECRET || 'your-secret-key',
        expiresIn: process.env.JWT_EXPIRES || '24h'
    },
    logger: {
        level: process.env.LOG_LEVEL || 'info',
        filename: 'logs/app.log'
    },
    robot: {
        defaultPort: 8055,
        reconnectInterval: 5000,
        messagePrefix: 'mstf.camb.proto'
    }
};
